// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

var screenWidth = window.screen.width;
var screenHeight = window.screen.height;

var pageSize = 20;

trainTypeArray = [
    [2,'二型车'],
    [5,'五型车']
    ]

taskTypeDataArray = [
    [0,'静态作业'],
    [1,'动态作业']
    ]


//锁定
function renderIsLucked(value, cellmeta, record, rowIndex, columnIndex, store){
    if (record.get("is_locked")=="1"){
        return "<a><font color=red>锁定</font></a>";
    }else{
        return "<a><font color=green>未锁定</font></a>";
    }
}
